package com.example.demo.service;

import com.example.demo.entity.Log;
import com.example.demo.mapper.LogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogImpl implements LogService {

    @Autowired
    private LogMapper logMapper;

    @Override
    public List<Log> getLogsByUserId(int userId) {
        return logMapper.selectLogsByUserId(userId);
    }
}
